STEP 6: Let's create the loop that will allow the player to guess more than once.

We'll use a for loop in our program. The number in range() determines how many times the loop repeats.

  • Go to and drag out Loop with Range.
  • Change the number of times the loop repeats to 3.
  • Drag Say from and drop it inside the for loop so it has a ····. Assign it to computer.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)